import request from '../utils/request'

// 获取用户个人资料
export const userProfile = () => {
  return request({
    url: '/app/v1_0/user/profile',
    method: 'GET'
  })
}

// 编辑用户个人资料  /app/v1_0/user/profile
export const changeUserProfile = (data) => {
  return request({
    url: '/app/v1_0/user/profile',
    method: 'PATCH',
    data
  })
}

// 编辑用户照片资料（头像、身份证照片）/app/v1_0/user/photo
export const changeUserPhoto = (data) => {
  return request({
    url: '/app/v1_0/user/photo',
    method: 'PATCH',
    data
  })
}
